﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Profile;
using System.Web.Security;

namespace InvasiveSpecies.Models
{
    public class AccountProfile : ProfileBase
    {
        static public AccountProfile CurrentUser
        {
            get
            {
                return (AccountProfile)
                       (ProfileBase.Create(Membership.GetUser().UserName));
            }
        }

        public int Reputation
        {
            get { return ((int)(base["Reputation"])); }
            set { base["Reputation"] = value; Save(); }
        }
    }
}
